<template>
  <div class="menu">
    <el-select v-model="form.city" placeholder="please select your zone">
      <!-- <el-option label="Zone one" value="shanghai" />
      <el-option label="Zone two" value="beijing" /> -->

      <el-option
        v-for="item in deptList"
        :key="item.dictValue"
        :label="item.dictLabel"
        :value="item.dictValue"
      ></el-option>
    </el-select>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
import { getCityDistrictCountyInfoList } from "@/api/api";

const form = ref({
  city: "",
});

const deptList = ref([]);

const cityDistrictCountyInfoList = () => {
  getCityDistrictCountyInfoList().then((res) => {
    deptList.value = res.data.data;
  });
};

onMounted(() => {
  cityDistrictCountyInfoList();
});
</script>
<style lang="scss" scoped></style>
